<!DOCTYPE html>
<html lang="zn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入Vue -->
    <script src="../js/vue.js"></script>
    <title>Vue监测数据改变的原理-对象</title>
</head>
<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h2>什么时间:{{when}}</h2>
        <h2>去了哪里:{{where}}</h2>
        <h2>去干嘛:{{what}}</h2>
        <h2>为什么去:{{why}}</h2>
    </div>

    <script>
        Vue.config.productionTip = false


    // 创建一个实例
    const vm =  new Vue ({
        el: '#root',
        data() {
            return {
                when:Date.now(),
                where:'深圳',
                what:'打工',
                why:'活着'
            }
        },
    })
    </script>
</body>
</html>